package com.woniuxy.education.entity;

import com.woniuxy.education.entity.dto.TUInfo;
import com.woniuxy.education.entity.dto.Tclass;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Date;
import java.util.List;

/**
 * @author author
 * @create 2021/4/1
 *
 * 教师
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class Teacher {

    private int id;
    private int number;  //教师编号
    private String name;
    private String address;
    private String sex;  //性别
    private int age;
    private Date birth;
    private Date admissionTime;  //入职时间
    private Date graduationDate;  //离职时间
    private int level;//等级
    private String subject;
    private int state;  //是否在职  1-在职  2-离职
    private String tel;
    private int position;  //职位 1-授课教师  2-班主任  3-年级主任
    private int u_id;  //user
    private List<Tclass> cls;//教师关联班级信息
    private List<TUInfo> tuInfos;//教师账号信息
}
